package com.tea.funct.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tea.funct.mapper.TeaSettleMapper;
import com.tea.funct.domain.TeaSettle;
import com.tea.funct.service.ITeaSettleService;

/**
 * 结算管理Service业务层处理
 * 
 * @author Sophia
 * @date 2024-05-25
 */
@Service
public class TeaSettleServiceImpl implements ITeaSettleService 
{
    @Autowired
    private TeaSettleMapper teaSettleMapper;

    /**
     * 查询结算管理
     * 
     * @param id 结算管理主键
     * @return 结算管理
     */
    @Override
    public TeaSettle selectTeaSettleById(Long id)
    {
        return teaSettleMapper.selectTeaSettleById(id);
    }

    /**
     * 查询结算管理列表
     * 
     * @param teaSettle 结算管理
     * @return 结算管理
     */
    @Override
    public List<TeaSettle> selectTeaSettleList(TeaSettle teaSettle)
    {
        return teaSettleMapper.selectTeaSettleList(teaSettle);
    }

    /**
     * 新增结算管理
     * 
     * @param teaSettle 结算管理
     * @return 结果
     */
    @Override
    public int insertTeaSettle(TeaSettle teaSettle)
    {
        return teaSettleMapper.insertTeaSettle(teaSettle);
    }

    /**
     * 修改结算管理
     * 
     * @param teaSettle 结算管理
     * @return 结果
     */
    @Override
    public int updateTeaSettle(TeaSettle teaSettle)
    {
        return teaSettleMapper.updateTeaSettle(teaSettle);
    }

    /**
     * 批量删除结算管理
     * 
     * @param ids 需要删除的结算管理主键
     * @return 结果
     */
    @Override
    public int deleteTeaSettleByIds(Long[] ids)
    {
        return teaSettleMapper.deleteTeaSettleByIds(ids);
    }

    /**
     * 删除结算管理信息
     * 
     * @param id 结算管理主键
     * @return 结果
     */
    @Override
    public int deleteTeaSettleById(Long id)
    {
        return teaSettleMapper.deleteTeaSettleById(id);
    }
}
